package com.huawei.appmarket.service.infoflow.cards.card;

import android.content.Context;
import androidx.databinding.ViewDataBinding;
import com.huawei.appgallery.foundation.card.base.card.BaseDistCard;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appmarket.service.infoflow.cards.bean.BaseInfoFlowCardBean;
import com.huawei.appmarket.service.infoflow.view.widget.InfoFlowCardContainer;
import o.ean;

public class BaseInfoFlowCard<T extends ViewDataBinding> extends BaseDistCard<T> {
    private InfoFlowCardContainer ʻ;
    protected int ˋ;

    public BaseInfoFlowCard(Context context) {
        super(context);
    }

    public void ॱ(int i) {
        this.ˋ = i;
    }

    public void ˎ(InfoFlowCardContainer infoFlowCardContainer) {
        this.ʻ = infoFlowCardContainer;
    }

    public void ˊ(T t) {
        super.ˊ((ViewDataBinding) t);
        if (t != null) {
            ॱ((ViewDataBinding) t);
        }
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
        if (this.ʻ != null && (cardBean instanceof BaseInfoFlowCardBean)) {
            BaseInfoFlowCardBean baseInfoFlowCardBean = (BaseInfoFlowCardBean) cardBean;
            baseInfoFlowCardBean.ʽॱ(ean.ˎ(baseInfoFlowCardBean));
            this.ʻ.setDividerVisibility(baseInfoFlowCardBean.ㆍ() ? 0 : 8);
        }
    }
}
